package cn.melonlib.cores.graphql.config.bean.impl;

import cn.melonlib.cores.graphql.config.bean.ParameterReader;
import graphql.schema.DataFetchingEnvironment;
import org.springframework.stereotype.Component;

@Component
public class FloatReader implements ParameterReader<Number> {
    public Number read(String fieldName, DataFetchingEnvironment env, Class<Number> cls) throws Exception {
        return env.getArgument(fieldName);
    }
}
